<template>
  <el-pagination
    class="pagination"
    background
    @current-change="currentChange"
    :current-page.sync="queryData.page"
    :page-size="queryData.limit"
    layout="total, sizes, prev, pager, next, jumper"
    :total="total"
    :page-sizes="[10, 30, 50, 100]"
  >
  </el-pagination>

  <!-- <el-pagination
    @size-change="sizeChange"
    @current-change="currentChange"
    :current-page.sync="currentPage"
    :page-sizes="[20, 40, 80, 100]"
    :page-size="pageSize"
    layout="total, sizes, prev, pager, next, jumper"
    :total="totalNum" background>
  </el-pagination> -->
  
</template>

<script>
export default {
  data() {
    return {
      queryData: {
        current: 1,
        limit: 10,
      },
    };
  },
  props: {
    total: {
      type: Number,
    },
  },
  methods: {
    // sizeChange(val) {
    //   console.log("数量", val);
    //   // this.queryData.pageSize = val;
    //   // this.$emit('updateList')
    // },
    // currentChange(val) {
    //   console.log("页码", val);
    //   // this.queryData.current = val;
    //   this.$emit('updateList')
    // },
  },
};
</script>

<style>
</style>